package com.hzy.ums.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.util.Date;

import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 购物车业务对象 ums_member_cart
 *
 * @author zengxin
 * @date 2023-10-19
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class MemberCartBo extends BaseEntity {

    /**
     * 购物车表ID
     */
    @NotNull(message = "购物车表ID不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 状态
     */
    @NotNull(message = "状态不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer status;

    /**
     * 用户ID
     */
    @NotBlank(message = "用户ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private String memberId;

    /**
     * 商品ID
     */
    @NotBlank(message = "商品ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private String productId;

    /**
     * 展示图片
     */
    @NotBlank(message = "展示图片不能为空", groups = { AddGroup.class, EditGroup.class })
    private String pic;

    /**
     * SKU ID
     */
    @NotBlank(message = "SKU ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private String skuId;

    /**
     * 产品名称
     */
    @NotBlank(message = "产品名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String productName;

    /**
     * 商品属性
     */
    @NotBlank(message = "商品属性不能为空", groups = { AddGroup.class, EditGroup.class })
    private String spData;

    /**
     * 商品数量
     */
    @NotBlank(message = "商品数量不能为空", groups = { AddGroup.class, EditGroup.class })
    private String quantity;


}
